﻿@namespace BootstrapBlazor.Components
@inherits BootstrapComponentBase

@if (Item.IsDisabled)
{
    <div class="nav-link disabled">
        <i class="@IconString"></i>
        <span class="text">@Item.Text</span>
    </div>
}
else
{
    <NavLink @attributes="@AdditionalAttributes" class="@ClassString" href="@HrefString" target="@TargetString" Match="@ItemMatch" style="@StyleClassString">
        <div class="flex-fill">
            <i class="@IconString"></i>
            <span class="text">@Item.Text</span>
        </div>
        @if (Item.Template != null)
        {
            <div class="widget" @onclick:stopPropagation>
                @Item.Template
            </div>
        }
        <i class="@MenuArrowClassString" />
    </NavLink>
}
